import request from '@/utils/request'
//获取所有部门负责人
export const getImployees=() =>request.get('/sys/user/simple')
//获取员工列表
export const getEmployees=(params) =>request.get('/sys/user',{params})
//添加员工
export const addEmployees=(data) =>request.post('/sys/user',data)
//删除员工
export const delEmployees=(id) =>request.delete(`/sys/user/${id}`,id)
//员工批量导入
export const importEmployees=(data) =>request.post('/sys/user/batch',data)
//保存员工的更新
export const saveUserDetailById=(data) =>request.put(`/sys/user/${data.id}`,data)
//给员工分配角色
export const assignRoles=(data) =>request.put(`/sys/user/assignRoles`,data)


